package com.ruoyi.whzj.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 自定义评论对象 wh_autocommont
 * 
 * @author ruoyi
 * @date 2020-11-30
 */
public class WhAutocommont extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commontTitle;

    /** 上级 */
    private String pid;

    /** 等级（一级，二级） */
    @Excel(name = "等级", readConverterExp = "一=级，二级")
    private String commontLevel;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCommontTitle(String commontTitle) 
    {
        this.commontTitle = commontTitle;
    }

    public String getCommontTitle() 
    {
        return commontTitle;
    }
    public void setPid(String pid) 
    {
        this.pid = pid;
    }

    public String getPid() 
    {
        return pid;
    }
    public void setCommontLevel(String commontLevel) 
    {
        this.commontLevel = commontLevel;
    }

    public String getCommontLevel() 
    {
        return commontLevel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commontTitle", getCommontTitle())
            .append("pid", getPid())
            .append("commontLevel", getCommontLevel())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
